//ajax请求
/*
    url:必须的
    method:不必须
    data:必须
    用map装载
    cb（回调函数函数）:必须
*/
function text(){
    let map = new Map();
    var method = "post";
    var url = baseUrl+modifyUrl;
    //js的date类型,用于设置用户的生日
    //var d = new Date(year, month, day, hours, minutes, seconds, milliseconds);
    //var d = new Date(2004,7,11);  暂时不行
    //请求的头部
    var arrayParams = {
        //"userName":"王宇欣",
        "userPassword":"wyx123",
        "userBirthday":"2003-7-11",
    };
    map.set("url",url);
    //把数据转化成json字符串形式
    map.set("data",JSON.stringify(arrayParams));
    map.set("method",method);
    //调用编写的Ajax请求
    myAjax(map,function(resp){
        //回调的数据
        console.log(resp);
    });
}
//上传图片
function upLoad(){
    console.log("点击了");
    var path = baseUrl + uploadImgUrl;
    $("#uploadImg").attr("action",path).submit();
}